package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitUserGoodsPicRouter(Router *gin.RouterGroup) {
	UserGoodsPicRouter := Router.Group("userGoodsPic").Use(middleware.OperationRecord())
	{
		UserGoodsPicRouter.POST("createUserGoodsPic", v1.CreateUserGoodsPic)   // 新建UserGoodsPic
		UserGoodsPicRouter.DELETE("deleteUserGoodsPic", v1.DeleteUserGoodsPic) // 删除UserGoodsPic
		UserGoodsPicRouter.DELETE("deleteUserGoodsPicByIds", v1.DeleteUserGoodsPicByIds) // 批量删除UserGoodsPic
		UserGoodsPicRouter.PUT("updateUserGoodsPic", v1.UpdateUserGoodsPic)    // 更新UserGoodsPic
		UserGoodsPicRouter.GET("findUserGoodsPic", v1.FindUserGoodsPic)        // 根据ID获取UserGoodsPic
		UserGoodsPicRouter.GET("getUserGoodsPicList", v1.GetUserGoodsPicList)  // 获取UserGoodsPic列表
	}
}
